package svcmodel

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ GatewayServiceHttpRuleModel = (*customGatewayServiceHttpRuleModel)(nil)

type (
	// GatewayServiceHttpRuleModel is an interface to be customized, add more methods here,
	// and implement the added methods in customGatewayServiceHttpRuleModel.
	GatewayServiceHttpRuleModel interface {
		gatewayServiceHttpRuleModel
	}

	customGatewayServiceHttpRuleModel struct {
		*defaultGatewayServiceHttpRuleModel
	}
)

// NewGatewayServiceHttpRuleModel returns a model for the database table.
func NewGatewayServiceHttpRuleModel(conn sqlx.SqlConn, c cache.CacheConf) GatewayServiceHttpRuleModel {
	return &customGatewayServiceHttpRuleModel{
		defaultGatewayServiceHttpRuleModel: newGatewayServiceHttpRuleModel(conn, c),
	}
}
